package com.maple.util

import java.io.{BufferedWriter, File, FileWriter}

/**
  * author: HuaZhe Ray
  *
  * describe: TODO
  *
  * createDate: 2017/12/15
  * createTime: 17:30
  *
  */
object FileUtil {

  def writeLogToFile(args:String): Unit ={

    val fw = new FileWriter(new File("a.log"),true)
    //写入中文字符时会出现乱码
    val bw = new BufferedWriter(fw)
    bw.write(args + "\r\n")
    bw.close()
    fw.close()
  }



}
